import { createRouter, createWebHistory } from 'vue-router'
import containerSystem from '@/views/containerSystem'
import SystemInstanceDetail from '@/views/containerSystem/detail.vue'

const routes = [
  {
    path: '/containerSystemList',
    component: containerSystem
  },
  {
    path:'/containerSystem',
    redirect: '/containerSystem/detail/overview',
    children: [
      {

        path: '/containerSystem/detail/:active',
        component: SystemInstanceDetail
      }
    ]
  },
]

const router = createRouter({
  history: createWebHistory((window.__POWERED_BY_QIANKUN__ ? '/v3/monitor' : '/')),
  routes
})

export default router
